import React from 'react';

import { BrowserRouter, HashRouter } from 'react-router-dom';

import App from './App.js';


import { Provider } from 'react-redux';

import Store from './store/store.js';

const unsubscribe = Store.subscribe(() => {
    localStorage.setItem("zylRoot", JSON.stringify(Store.getState()))
})

const Router = () => (
    <BrowserRouter>
        <Provider store={Store}>
            <App />
        </Provider>
    </BrowserRouter>
)
export default Router;
/*

*/
